package nfwx.analytics;

/**
 * 采集参数，字符串类型
 */

public class GrabString extends GrabValue {
    private String _value;
    public GrabString(boolean mustHasValue)
    {
        super(mustHasValue);
        _value="";
    }
    public void setValue(String v)
    {
        if (v == null) v="";
        if (_hasValueCount != 0) {
            if (!v.equals(_value)) {
                _value = v;
                incChanged();
            }
        } else {
            _value = v;
            incChanged();
            incHasValue();
        }
    }

    public String getValue()
    {
        return _value;
    }
}
